package com.zhao.annotation;

import java.lang.annotation.*;

/**
 * time: 2018/7/10.
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Inherited
public @interface DataExpression {

    //源路径
    String original() default "";

    //源类
    Class<?> originalClass() default Object.class;

    //源属性,循环表达式配置此属性
    String originalProperty() default "";

    //表达式规则
    DataExpressionRuler ruler() default DataExpressionRuler.EG;

    //对比值,常量
    String judge() default "";

    //目标路径
    String result() default "";

    //目标属性,循环表达式配置此属性
    String resultProperty() default "";

    //目标类
    Class<?> resultClass() default Object.class;

}
